import styled from "styled-components";

interface Props {
  showFinish?: boolean;
}

export const CoffeeCardWrapper = styled.div<Props>`
  margin-bottom: 10px;
  border: 1px solid #000;
  border-radius: 8px;
  position: relative;
  .card {
    /* 高斯模糊 */
    filter: blur(${(props) => (props.showFinish ? "3px" : "0")});

    .time-price {
      display: flex;
      font-size: 22px;
      align-items: flex-end;
      .time {
        flex: 1;
        font-size: 16px;
        color: #1f1f1f;
      }
      .price {
        font-weight: 700;
      }
    }
  }
  .finish {
    /* 定位 */
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);

    display: flex;
    justify-content: center;
    align-items: center;

    .backBtn,
    .finishBtn {
      flex: 1;
      margin: 15px;
      height: 80px !important;
      width: 80px !important;
      font-size: 22px;
      border-radius: 50%;
      border: 1px solid #000;
    }
    .backBtn {
      :hover {
        background-color: #696969;
        color: #fff;
      }
    }
    .finishBtn {
      :hover {
        background-color: #6d82cf;
        color: #fff;
      }
    }
  }
`;
